Using a class name as a dictionary reference

by: ATJAlan, 8 years ago


I have just found your site and am very impressed - somehow it has never come up before in my Google searches for things Python.
It turned up when I asked about Tkinter and Matplotlib. I am just starting on your bitcoin app. I had no problems with the exception of:

self.frames[StartPage] = frame

Using  a class name as a key seems very strange. Obviously it works but using "StartPage" as a string would have been easier to understand in a section which is going to be difficult.



You must be logged in to post. Please login or register an account.